//
// Created by 38635 on 2024/08/02.
//

#ifndef CMAKE_SAMPLE_SRC_APP_HLP_ALG_TEST_ALG_COMM_H_
#define CMAKE_SAMPLE_SRC_APP_HLP_ALG_TEST_ALG_COMM_H_

#include "stdint.h"

#define ALG_BIG_FRAME_WIDTH (2560)
#define ALG_BIG_FRAME_HEIGHT (1440)
#define ALG_SMALL_FRAME_WIDTH (640)
#define ALG_SMALL_FRAME_HEIGHT (360)

typedef char alg_char;
typedef unsigned char alg_uchar;
typedef uint16_t alg_u16;
typedef int16_t alg_s16;
typedef uint32_t alg_u32;
typedef int32_t alg_s32;
typedef uint64_t alg_u64;
typedef float alg_f32;
typedef bool alg_bool;

typedef enum {
  image_unknown = 0,
  image_yuv420sp,
  image_yuv422sp,
  image_yuv420,
  image_yuv422,
  image_rgb,
  image_jpeg = 0x16
} VZ_ALG_ImgFormat;

typedef struct {
  alg_u32 u32Width;
  alg_u32 u32Height;
  alg_u64 u64FramePhy[3];
  alg_u64 u64VirAddr[3];
  alg_u32 u32Stride[3];
  alg_u64 u64TimeStamp;
  alg_u64 u64LocalTime;
  VZ_ALG_ImgFormat eImageType;
} VZ_HLP_ALG_Frame;

#endif //CMAKE_SAMPLE_SRC_APP_HLP_ALG_TEST_ALG_COMM_H_
